FROM openeuler/openeuler:21.03
#FROM python:3.8
LABEL maintainer="zhangjianjun"

RUN yum install -y gcc
RUN yum -y update && yum install -y python3 && yum install -y python3-pip mysql-devel && yum install -y python3-devel
RUN pip install mysql-connector
RUN mkdir -p /opt/app/cve-python
WORKDIR /opt/app/cve-python
COPY . /opt/app/cve-python/
RUN pip install --no-cache-dir -r /opt/app/cve-python/requirements.txt

ENTRYPOINT ["python3", "/opt/app/cve-python/main.py"]